package card;

import java.util.Comparator;

public class Card implements Comparable<Card> {

  Color color;
  Value value;

  public Card(Color color, Value value) {
    this.color = color;
    this.value = value;
  }

  @Override
  public int compareTo(Card other) {
    return this.value.compareTo(other.value);
  }

  public String to_string() {
    return String.format("%s %s", color.name(), value.name());
  }
}
